package com.ruoyi.sale.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 销售订单对象 sale_order
 * 
 * @author ruoyi
 * @date 2022-09-02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class SaleOrder extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 订单编号 */
    @Excel(name = "订单编号")
    private Long orderNo;

    /** 客户id */
    @Excel(name = "客户id")
    private Long customerId;

    /** 客户名称 */
    @Excel(name = "客户名称")
    private String customerName;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String productName;

    /** 结算账户 */
    @Excel(name = "结算账户")
    private String account;

    /** 优惠金额 */
    @Excel(name = "优惠金额")
    private Long reduced;

    /** 定金 */
    @Excel(name = "定金")
    private Long earnest;

    /** 优惠前金额 */
    @Excel(name = "优惠前金额")
    private Long amount;

    /** 实际收取金额 */
    @Excel(name = "实际收取金额")
    private Long pay;

    /** 销售单状态，-1：拒绝，0：待审核，1：已审核待出库，2：完成销售 */
    @Excel(name = "销售单状态，-1：拒绝，0：待审核，1：已审核待出库，2：完成销售")
    private Integer status;


}
